﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="AddEditAdvertisement.aspx.cs" Inherits="Page_AddEditAdvertisement"
    ValidateRequest="false" %>

<%@ Register Src="UserControl/ContentHeader.ascx" TagName="ContentHeader" TagPrefix="uc1" %>
<%@ Register Src="UserControl/Message.ascx" TagName="Message" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= TextBox_StartDate.ClientID %>").datepicker();
            $("#<%= TextBox_EndDate.ClientID %>").datepicker();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <uc1:ContentHeader PageTitle='Update Advertisement' ID="ContentHeader1" runat="server"
        GoToLabel="Advertisement List Management" GoToLink="AdvertisementListManagement.aspx" />
    <div class="body_content">
        <uc2:Message ID="Message_Alert" runat="server" />
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Advertisement.AdvertisementName%></label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_AdvTitle" runat="server" CssClass="textbox_medium" MaxLength="255"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="TextBox_AdvTitle"
                    ValidationGroup="input"></asp:RequiredFieldValidator>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Advertisement.AdvertisementCategory%></label>
            <div class="form_field fl">
                <asp:DropDownList ID="DropDownList_Category" CssClass="select_small" runat="server">
                </asp:DropDownList>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Advertisement.AdvertisementPosition%></label>
            <div class="form_field fl">
                <asp:DropDownList ID="DropDownList_Position" CssClass="select_small" runat="server">
                </asp:DropDownList>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Advertisement.AdvertisementFile%></label>
            <div class="form_field fl">
                <div class='fl filetype'>
                    <asp:FileUpload CssClass="file fileupload" ID="FileUpload_Image" runat="server" />
                </div>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important"></span><%= Resources.Advertisement.Link%></label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_Link" runat="server" CssClass="textbox_medium" MaxLength="255"></asp:TextBox>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Advertisement.StartDate%></label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_StartDate" CssClass="textbox_smaller" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="TextBox_StartDate"
                    ValidationGroup="input"></asp:RequiredFieldValidator>
            </div>
            <div class="form_field fl">
                <label class="lb fl">
                    <span class="important">*</span><%= Resources.Advertisement.EndDate%></label>
                <asp:TextBox ID="TextBox_EndDate" CssClass="textbox_smaller" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                    ControlToValidate="TextBox_EndDate" ValidationGroup="input"></asp:RequiredFieldValidator>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important"></span><%= Resources.Advertisement.Detail%></label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_Detail" runat="server" CssClass="textarea" TextMode="MultiLine"
                    MaxLength="255" Height="90px" Width="300px"></asp:TextBox>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important"></span>
            </label>
            <div class="form_field fl">
                <asp:Button ValidationGroup="input" ID="Button_Save" CssClass="button" runat="server"
                    Text="Save" OnClick="Button_Save_Click" />
            </div>
            <div class="clr">
            </div>
        </div>
    </div>
</asp:Content>
